PreviousNextTracker indexSee it online !

(197/207) 493 - Undo "Close all buffers"

"Close all buffers" should ask for confirmation, because it's annoying if a huge list of opened files get closed by accident ("Close all buffers" (C-e C-w) has nearly the same shortcut as "Mark word at cursor" (C-e w). But it could also happen by accidently clicking the action menu entry)

An option for this could make sense, just like the already existing "'Save all buffers' asks for confirmation" (which resides in "Saving & Backup").
I don't know where the new option should get put though. Maybe a new tab "Confirmations"?

Submitted blueyed - 2007-11-09 12:43:33 Assigned
Priority 5 Labels
Status open Group minor bug
Resolution None

Comments

2008-05-31 00:03:22
k_satoda

Logged In: YES
user_id=1483238
Originator: NO

This request is for confirmation before closing any buffer, not before
closing each buffer. It looks a valid request.

2009-03-18 13:08:05
blueyed

I'm moving this to the Bugs tracker (instead of feature request), now that it happened again to me (and I'm used to have a lot of buffers open, switching with the "Switch Buffer" plugin between them).

For now, I've removed the "Close all buffers" shortcut in my settings.

Still, a confirmation dialog seems the way to fix/prevent this.
Additionally, I would say that "Close all buffers" either should not have a default shortcut or another/safer one (even when the confirmation dialog gets added).

2009-03-18 13:08:06
blueyed

- **labels**: 871558 -->

2013-01-17 18:20:04
kerik-sf

A "reopen last closed" action would be more desirable to me, like using Ctrl-Shift-T in web browsers, but I don't think we have the information to do so (list of recently closed, buffersets they were part of, etc.).

2014-12-30 16:41:41.950000
ezust

- **summary**: Please add confirmation for "Close all buffers" --> Undo "Close all buffers"
- **Group**: --> minor bug

2014-12-30 16:42:46.725000
ezust

Ticket moved from /p/jedit/bugs/2982/

2015-01-03 13:00:39.490000
kerik-sf

I've written a plugin to do this some time ago but never released it.
See [Reopen](https://sourceforge.net/u/kerik-sf/reopen/ci/master/tree/).

It restores the buffer set and the buffer contents.

2015-01-03 15:53:13.315000
ezust

Testing it now. Others can download a pre-release here:
http://lazarus.oddiofile.com/jars/Reopen.jar

It seems to work on first try. Small suggestions.

1. changing the .menu into a .menu-item
2. changing "reopen closed file" to "reopen closed files"
3. Adding a small documentation page.

It might be ready for release after that.

2015-01-03 17:04:43.869000
kerik-sf

I have
[AWT-EventQueue-0] [error] ReopenPlugin: couldn't find the buffer closing in given view
messages in the activity log.

Looks like the buffer has already disappeared from the edit panes/buffersets upon the BufferUpdate event.

2015-01-03 17:30:57.286000
kerik-sf

There is a bug in Reopen plugin: once the limit of buffers to remember (10) is reached, closing a buffer removes the most recently closed buffer, not the oldest. I'll correct that.

2015-01-04 14:56:47.893000
ezust

Daniel:

Regarding the shortcut you didn't like/changed, the person who came up with the "jedit" keymap is Slava, and he doesn't even use jEdit anymore. Nobody is maintaining the default keymap and the only reason it's there is because it never changes and is something people can "count on". Changing it to anything now seems pointless. It is not maintained.

If you want to make changes to the German keymap, that is another story. Feel free to make any changes you think are appropriate.

or, if you have another keymap you think is worthy of sharing with the community, feel free to submit it. You are a very experienced jEdit user so I don't doubt you can come up with something better than jEdit.keymap.

I am the one responsible for the Emacs.keymap so if you have complaints about that, you can send them to me.

2015-01-04 15:00:45.893000
ezust

Eric: If you move Reopen to jEdit's sf.net git, I will see the change notifications as e-mails and know when to do a pull.

2015-01-04 18:55:08.615000
kerik-sf

I've corrected most bugs, updated the doc and put a new version at http://kerik-sf.users.sourceforge.net/dropbox/Reopen.jar

2015-01-04 18:55:49.171000
kerik-sf

I mean every bug that I could find.
And we'll move to jEdit git ASAP.

2015-08-09 14:21:26.540000
daleanson

What's the status on this? The Reopen plugin seems to work well. How about putting in a release request and closing this ticket?

2015-08-10 19:53:24.097000
kerik-sf

release request created.
Thanks for the reminder :-)